package com.springcloud.sc.ucp.v5.api.vo;

import com.springcloud.sc.ucp.v5.api.entity.UcpVoipVoice;
import com.springcloud.sc.ucp.v5.api.entity.UcpVoipVoiceRecord;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class UcpVoipVoiceDTO{
    private String id;
    private String uuid;
    private String promulgator;
    private String publishTime;
    private String publishFilePath;
    private String publishWay;
    private String calledNumbers;
    private int result;
   private List<UcpVoipVoiceRecord> userList = new ArrayList<>();
   public UcpVoipVoiceDTO(UcpVoipVoice uUcpVoipVoice){
       this.setPromulgator(uUcpVoipVoice.getPromulgator());
       this.setPublishTime( uUcpVoipVoice.getPublishTime() );
       this.setPublishFilePath(uUcpVoipVoice.getPublishFilePath());
       this.setPublishWay( uUcpVoipVoice.getPublishWay() );
       this.setCalledNumbers(uUcpVoipVoice.getCalledNumbers());
       this.setResult( uUcpVoipVoice.getResult() );
       this.setId(  uUcpVoipVoice.getId() );
   }
   public void addUserList(UcpVoipVoiceRecord ucpVoipVoiceRecord){
       this.userList.add( ucpVoipVoiceRecord );
   }

}
